<include file="public/header"/>
<div class="am-cf admin-main">
    <!-- sidebar start -->
    <include file="public/sidebar"/>
    <!-- sidebar end -->

    <!-- content start -->
    <div class="admin-content">
        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">
                返工记录

            </strong></div>
            <div id="result"></div>
        </div>

        <div class="am-g">
            <div class="am-u-md-6 am-cf">
                <div class="am-fl am-cf">
                    <div class="am-btn-toolbar am-fl">
                        <div class="am-btn-group am-btn-group-xs">
                            <form method="post" action="__URL__/returnListExport">
                                <input type="text" name="start_time" placeholder="选择日期" data-am-datepicker readonly/>
                                <input type="text" name="end_time" placeholder="选择日期" data-am-datepicker readonly/>

                                <button type="submit" class="am-btn-primary am-btn-xs">
                                    导出excel
                                </button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="am-g">
            <div class="am-u-sm-12">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                    <tr>
                        <th class="table-check"><input type="checkbox" id="all"/></th>
                        <th class="table-type">姓名</th>
                        <th class="table-type">订单号</th>
                        <th class="table-id">类型</th>
                        <th class="table-type">数量</th>
                        <th class="table-type">理由</th>
                        <th class="table-type">返工日期</th>
                        <th class="table-type">量体师</th>
                        <th class="table-set">工厂</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="lists" item="list">
                        <tr>
                            <td><input type="checkbox" name="oid[]" class="check" value="{$list.oid}"/></td>
                            <td>{$list.name}</td>
                            <td>{$list.ordernum2}</td>
                            <td>
                                {$list.type}
                            </td>
                            <td>{$list.num}</td>
                            <td>{$list.descr}</td>
                            <td>{$list.return_date|date="Y-m-d H:i:s",###}</td>
                            <td>{$list.belong}</td>
                            <td>{$list.gc}</td>
                            <td>
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">

                                    </div>
                                </div>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
                <div class="am-cf">
                    {$page}
                </div>
            </div>
        </div>
    </div>
    <!-- content end -->
</div>
<script src="__PUBLIC__/assets/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript">

</script>
<include file="public/footer"/>